package com.boot.config.rpc

import com.googlecode.jsonrpc4j.spring.AutoJsonRpcServiceImplExporter
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration

/**
 * JSON-RPC Server
 */
@Configuration
class JsonRpcConfig {

    @Bean
    fun rpcServiceImplExporter(): AutoJsonRpcServiceImplExporter? {
        return AutoJsonRpcServiceImplExporter()
    }

    companion object {
        private val log: Logger = LoggerFactory.getLogger(this::class.java)
    }

}